package com.cxyzy.demo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_original.*

class OriginalActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_original)
        showImageView(R.drawable.dongtu)
    }

    private fun showImageView(imageResId: Int) {
        Glide.with(this).load(imageResId).into(imageView)
    }
}
